package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperatorType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description DishFlavorsMapper
 * @Author zhuzi
 * @Date 2023/09/25
 */
@Mapper
public interface DishFlavorsMapper {

    /**
     * 批量新增口味
     *
     * @param dishFlavors
     */
    void saveDishFlavors(List<DishFlavor> dishFlavors);

    /**
     * 根据菜品id获取菜品口味
     *
     * @param dishId
     * @return
     */
    List<DishFlavor> getDishFlavorsByDishId(Long dishId);

    /**
     * 根据菜品id删除菜品口味
     *
     * @param id
     */
    void deleteDishFlavorsByDishId(Long id);

    /**
     * 根据菜品ids删除菜品口味
     *
     * @param dishIds
     */
    void deleteDishFlavorsByDishIds(List<Long> dishIds);

}
